home *** CD-ROM | disk | FTP | other *** search
- Path: hptemp1.cc.umr.edu!nexus
- From: mcastle@umr.edu (Mike Castle)
- Newsgroups: comp.lang.c
- Subject: Re: Questions about include files, and make file error
- Date: 29 Mar 1996 13:15:52 GMT
- Organization: University of Missouri - Rolla
- Message-ID: <4jgnq8$p1t@hptemp1.cc.umr.edu>
- References: <4jfqvn$gb6@sue.cc.uregina.ca>
- NNTP-Posting-Host: dialup-pkr-5-12.network.umr.edu
- Originator: nexus@thune.mrc.org
-
- In article <4jfqvn$gb6@sue.cc.uregina.ca>,
- Shayne G. Wright <wright@HERCULES.CS.UREGINA.CA> wrote:
- > The first question is, can it be setup so that
- > an #include <ncurses.h> statement, or similar, would
- > cause the compiler to look in /usr/include/ncurses
- > or any other subdirectory, or do I have to make use of
- > symbolic links and/or move the *.h files to /usr/include/
-
- Add -I/usr/include/ncurses to the command line.
- Change to #include <ncurses/ncurses.h>
-
- Course, the most recent versions of ncurses replaces curses for
- linux, so you should probably move that file into
- /usr/include/curses.h
-
- > The second question is, is there anything wrong
- > with this line from a Makefile
- >
- > ld -shared,-Wl,-soname,$(SONAME) -o $@ $^
-
- -Wl is an option to gcc, telling it to pass it on to ld. Try
- replaced 'ld' with 'gcc' in that line. I don't think you need
- the ',' after '-shared'.
-
- mrc
- --
- Mike Castle .-=NEXUS=-. Life is like a clock: You can work constantly
- mcastle@cs.umr.edu and be right all the time, or not work at all
- mcastle@umr.edu and be right at least twice a day. -- mrc
- We are all of us living in the shadow of Manhattan. -- Watchmen
-